<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
	 <%@ include file="/common/meta.jsp" %>
 	 <%@ include file="/common/import.jsp"%>
    <base href="<%=basePath%>">
    
    <title>会员列表页面</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->
	<style type="text/css">
		#userRegTable,#editTable
		  {
		  font-family:"Trebuchet MS", Arial, Helvetica, sans-serif;
		  width:50%;
		  border-collapse:collapse;
		  }
		
		#userRegTable td,#editTable td, #customers th,#editTable th 
		  {
		  font-size:1em;
		  border:1px solid #98bf21;
		  padding:3px 7px 2px 7px;
		  }
		
		#userRegTable th,#editTable th
		  {
		  font-size:1.1em;
		  text-align:left;
		  padding-top:5px;
		  padding-bottom:4px;
		  background-color:#A7C942;
		  color:#ffffff;
		  }
		
		 .alt
		  {
		  color:#000000;
		  background-color:#EAF2D3;
		  }
	</style>
	</script>
	<script type="text/javascript">
	
		function submitForm(){
			if(!$('#logform').form('validate')){
				return;
			}
			$('#logform').submit();
		
		}
		
		var save_url  = '${ctx}/audit/audit.action'; 
		function pass(){
			$('#auditFlag').val('T');
			if(confirm('您确定要提交审核结果吗？')){
				$('#logform').form('submit', {
					type:'post',
				    url:save_url,
				    success:function(data){
				    	var oTxt = jQuery.parseJSON(data);
						var mess = oTxt.msg;
						var flag = oTxt.flag;
						alert(flag);
						if(flag=="T"){
							alert(mess);
				        	window.location.href="${ctx}/sendPage/member/audit/audit-identify-list";
						}else{
							alert(mess);
						}
						
				    },
				    error:function(){
						 alert("请检查服务器！");
					}
				});
			}
		}
		function noPass(){
			$('#auditFlag').val('F');
			if(confirm('您确定要提交审核结果吗？')){
				$('#logform').form('submit', {
					type:'post',
				    url:save_url,
				    success:function(data){
				    	var oTxt = jQuery.parseJSON(data);
						var mess = oTxt.msg;
						var flag = oTxt.flag;
						if(flag=="T"){
							alert(mess);
				        	window.location.href="${ctx}/sendPage/member/audit/audit-identify-list";
						}else{
							alert(mess);
						}
						
				    },
				    error:function(){
						 alert("请检查服务器！");
					}
				});
			}
			
		}
	</script>

  </head>
  <body>
<!--   	<div id="pro_logs" title="操作历史记录" icon="icon-back" collapsible="true" closed="true"></div> -->
<br/>

<div id="pro_hgxsh" title="审核信息情况" icon="icon-remove"  collapsible="true" class="easyui-panel">
  	<jsp:include page="${ctx}/sendPage/member/member-view?memberId=${param.memberId}"></jsp:include>
</div>
<br/>
	<div id="pro_hgxsh" title="审核意见" icon="icon-remove"  collapsible="true" class="easyui-panel">
<%--	  	<jsp:include page="member-audit-msg.jsp"></jsp:include>--%>
	</div>

<br>
<div id="pro_hgxsh_content" title="申请审核意见" icon="icon-edit" collapsible="true" class="easyui-panel">	
<form name="logform" id="logform" method="post" action="${ctx}/audit/audit.action">
	<input type="hidden" value="${param.memberId}" name="pid" />
	<input type="hidden" value="T_MEMBER" name="tableName" />
	<input type="hidden" value="MEMBER_ID" name="colName" />
	<input type="hidden" value="${param.auditId}" name="auditId" />
	<input type="hidden" value="T" name="auditFlag" id="auditFlag" />
 <table  border="0" align="center" cellpadding="0" cellspacing="1" class="info" style="margin:20px;width:95%;">
	<tr><td colspan=3><center>
    	审核意见：<textarea name="auditOpinion" id="auditOpinion" cols=80 rows=5  class="easyui-validatebox"
    	 validType="length[0,300]" missingMessage="最多可输入300字" invalidMessage="最多可输入300字"  title="最多可输入300字""></textarea>
    	</center></td>
  	</tr>
	  	 	
  	<tr>
    	<td colspan=3> <center>
	        <a class="easyui-linkbutton" id="bt1" iconCls="icon-ok" onclick="pass()">审核通过</a>  
	    	<a class="easyui-linkbutton" id="bt2" iconCls="icon-undo" onclick="noPass()">审核不通过</a>
    	</center></td></tr>
 </table>
</form>
</div>
<br>
</body>
</html>
